import request from '@/utils/requestH2'

/* 合同管理 */

// 合同列表查询
export function selContractListApi(params) {
  return request({
    url: '/projectManage/selContractList',
    method: 'GET',
    params
  })
}

// 根据ids删除项目
export function delContractByIdsApi(data) {
  return request({
    url: '/projectManage/contract/delContractByIds',
    method: 'DELETE',
    data
  })
}

// 根据id修改项目
export function updateContractByIdApi(data, id) {
  return request({
    url: `/projectManage/contract/updateContractById/${id}`,
    method: 'PUT',
    data
  })
}

/* 结案查询 */

// 结案列表查询
export function selEndCaseListApi(params) {
  return request({
    url: '/projectManage/selEndCaseList',
    method: 'GET',
    params
  })
}

// 根据id查询结案内容
export function selEndCaseByIdApi(id) {
  return request({
    url: `/projectManage/endCase/selEndCaseById/${id}`,
    method: 'GET'
  })
}

// 根据id修改结案内容
export function updateEndCaseByIdApi(data) {
  return request({
    url: `/projectManage/endCase/updateEndCaseById`,
    method: 'PUT',
    data
  })
}

// 根据ids删除结案内容
export function delEndCaseByIdsApi(data) {
  return request({
    url: '/projectManage/endCase/delEndCaseByIds',
    method: 'DELETE',
    data
  })
}

